Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make scalar_width return size in bytes #5532

Merged
merged 3 commits into from
Apr 15, 2024
Merged

Conversation

atlv24
Copy link
Contributor

@atlv24 atlv24 commented Apr 14, 2024

Connections
Resolves #5278

Description
scalar_width returns size in bits, despite the rest of the codebase dealing exclusively in byte scalar widths, and it does so with no documentation or specification in the function name. This has shot me in the foot 3 times already, so I figured its probably shooting other people's feet.

Testing
Existing test cases

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@atlv24 atlv24 requested a review from a team as a code owner April 14, 2024 19:36
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@teoxoy teoxoy merged commit c6efbef into gfx-rs:trunk Apr 15, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make TypeInner::scalar_width return the width in bytes
2 participants